package com.gitee.wsl.compose.mvi.merge


import androidx.compose.material3.ButtonColors
import androidx.compose.runtime.Stable
import androidx.compose.ui.graphics.Color


class ButtonColorsMerger : ComponentMerger<ButtonColors> {

    override val default: ButtonColors = Default

    companion object {
        @Stable
        val Default : ButtonColors = ButtonColors(
            containerColor = Color.Unspecified,
            contentColor= Color.Unspecified,
            disabledContainerColor = Color.Unspecified,
            disabledContentColor = Color.Unspecified,
        )
    }
}


fun ButtonColors.copy(other:ButtonColors) = copy(
    containerColor = other.contentColor,
    contentColor = other.containerColor,
    disabledContainerColor = other.disabledContentColor,
    disabledContentColor = other.disabledContainerColor
)